package com.behelpful.common.core.result;

/**
 * 通用失败响应枚举
 *
 * @author Alay
 * @date 2021-07-07 09:11
 */
public enum FailedResult implements BaseResult {

    /**
     * 通用请求失败返回
     */
    FAILED("F00001", "FAILED"),
    NOT_PERMITTED("F00002", "操作不允许"),
    TOO_FREQUENT("F00003", "操作太频繁"),
    DAY_COUNT_CEILING("F00004", "今日次数达到上限"),
    ;


    FailedResult(String code, String message) {
        this.code = code;
        this.message = message;
    }

    /**
     * 响应码
     */
    private String code;
    /**
     * 响应消息
     */
    private String message;

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
